package store

import (
	"file_explorer/common/consts"

	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/theme"
)

type SettingTabContext struct {
	DefaultTabContext
}

func (ctx *SettingTabContext) GetTabType() string {
	return consts.TabTypeSetting
}

func (ctx *SettingTabContext) GetTabLabel() string {
	return "设置"
}

func (ctx *SettingTabContext) GetTabIcon() fyne.Resource {
	return theme.SettingsIcon()
}

func NewSettingTabContext(gCtx *GlobalContext) *SettingTabContext {
	tabCtx := &SettingTabContext{
		DefaultTabContext: newDefaultTabContext(gCtx),
	}
	return tabCtx
}
